package com.fulihui.weixinclient.request;

import com.alibaba.fastjson.JSON;
import com.fulihui.weixinclient.result.MenuGetWeixinResult;

/**
 * 获取自定义菜单列表接口返回封装
 * Created by Willard on 2015/9/15.
 */
public class MenuGetWeixinRequest extends FuncWeixinRequest<MenuGetWeixinResult> {
    private static final long serialVersionUID = -5857513140767170147L;

    @Override
    public String service() {
        return "https://api.weixin.qq.com/cgi-bin/menu/get";
    }

    @Override
    public String urlEndStr() {
        return null;
    }

    @Override
    public MenuGetWeixinResult parseResult(String respStr) {
        MenuGetWeixinResult result = JSON.parseObject(respStr, MenuGetWeixinResult.class);
        checkResult(result);
        return result;
    }

}
